package com.common.model.infect;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Email;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_user")
public class User {

        @Id
        private Long id;

        private String username;

        private String nickname;

        private String email;

        private String phone_number;

        private Date create_time;

        private  Date modified_time;

        private Integer sex;

        private String password;

        private Date birth;

        private String avatar;
}
